package com.example.car.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
public class Driver {

    @Id
    private String id;

    private String name;

    // 1男0女
    private Integer gender;

    private Integer age;

    @Field("car_age")
    // 驾龄
    private Integer carAge;

    // 驾驶证号
    @Field("car_license_number")
    private String carLicenseNumber;

}
